 package com.nondo.dean.platform.controller.api.common;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.nondo.dean.platform.tool.QRCodeUtils;

 @RestController
 @RequestMapping("/{v}/common/qrcode")
 public class QRCodeController {

     @RequestMapping(value = "/generate")
     public void generateCode (HttpServletRequest request, HttpServletResponse response, String path) {
         QRCodeUtils.encoderQRCoder(path, response);  
     }
}
